//
// Created by 62606 on 25-8-2.
//
#include <bits/stdc++.h>
using namespace std;

int main() {
    int n, a, b;
    cin >> n >> a >> b;
    string s;
    cin >> s;
    cout << s.substr(a, n - a - b);

    string ans;
    for (int i = 0; i < n; i++) {
        if (i >= a && i <= n - 1 - b) {
            ans += s[i];
        }
    }
    cout << ans;

    ///将 [a,  n-1-b] 的字符串位置的字符串截出来
    return 0;
}
